#include<cstdio>

enum{ G=34942 };

void CRC(char * line){

}

int main() {

#ifndef ONLINE_JUDGE
    freopen("128.in", "r", stdin);
#endif

    char line[1024+1];

    while( fgets(line, sizeof(line), stdin)!=NULL ){
        if( '#'==line[0] )
            break;
        CRC(line);
    }
    return 0;
}
